<?php
/**
 *
 * @author Mike Gao
 */
class Enter_detailViewModel extends ViewModel{
    protected $pk  = 'Enter_detail.id';

    public $viewFields = array(
        'Enter_detail' => array('*'),
        
        'Supplier' => array('name'=>'sname', '_on' => 'Enter_detail.supplier_id = Supplier.id'),
        'Product' => array('id'=>'pid', 'name', 'tm','unit_id','cat_id','cost_default','minstock','common_id','_on' => 'Enter_detail.product_id = Product.id'),
        
    );


}
?>
